package com.w7vm.menuweb.dao;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.w7vm.menuweb.entity.AlimentosTiposSy;
import com.w7vm.menuweb.entity.RestauranteTipoSy;


@Stateless
public class AlimentoDAO extends GenericDAO<AlimentosTiposSy>{

	
	public AlimentoDAO() {
		super(AlimentosTiposSy.class);
	}


	@PersistenceContext
	private EntityManager em;
	

	public List<AlimentosTiposSy> findAlimentosTiposByAll() {
		List<AlimentosTiposSy> alimentoL = null;
		try {
			alimentoL = super.findByAll(AlimentosTiposSy.FIND_ALIMENTOTIPO_BY_ALL);
		} catch (Exception e) {
			System.out.println("Error while running query: " + e.getMessage());
			e.printStackTrace();
		}
		return alimentoL;
	}	
	
}
